@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
    height: 100%;
    color: $textColor;
    font-size: 14px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

.red {
    color: $SecondColor;
}

.primaryColor {
    color: $primaryColor;
}

.danger {
    color: $SecondColor !important;
}

.freePrice {
    color: #00BA92 !important;
}

.placeholder6 {
    color: $placeholder6;
}

.ml20 {
    margin-left: 20px;
}

.w100 {
    width: 100px !important;
}

.w200 {
    width: 200px !important;
}

.w400 {
    width: 400px !important;
}

.mt30 {
    margin-top: 30px;
}

.pointer {
    cursor: pointer;
}

.f_size12 {
    font-size: 12px;
}

.f_size18 {
    color: #222222;
    font-size: 18px;
}

.myself_popper {
    padding: 0;
}

.overflowLine {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
}

label {
    font-weight: 700;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
}

.ql-container {
    min-height: 200px !important;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

.el-button {
    height: 36px;
    padding: 0 20px;
}

.el-button--danger {
    color: $SecondColor;
    background-color: #fff;
    border-color: $SecondColor;

    &:hover {
        background-color: #fbedea;
        border-color: $SecondColor;
        color: $SecondColor;
    }
}

.el-button--primary {
    background-color: $primaryColor;
    border-color: $primaryColor;

    &:hover {
        background-color: $hoverColor;
        border-color: $hoverColor;
        color: #fff;
    }
}

.el-button--default {
    &:hover {
        background-color: #fff;
        border-color: $hoverColor;
        color: $hoverColor;
    }
}

.el-button--text {
    color: $primaryColor;
    padding: 0;
    height: auto;

    &:hover,
    &:active,
    &:focus {
        outline: none;
        border: none;
    }
}

.el-tabs__item.is-active {
    color: $primaryColor;
}

.el-tabs__active-bar {
    background-color: $primaryColor;
}

.el-input.is-active .el-input__inner,
.el-input__inner:focus {
    border-color: $primaryColor
}

.el-aside {
    // 侧边栏折叠动画速度
    transition: width 0.25s;
    -webkit-transition: width 0.25s;
    -moz-transition: width 0.25s;
    -webkit-transition: width 0.25s;
    -o-transition: width 0.25s;
}

// main-container global css
.app-container {
    padding: 20px;
}

.el-table {
    color: $textColor;

    td,
    th {
        padding: 7px 0;
    }

    .table-header {
        background-color: $tableHeadColor !important;

        th {
            background-color: $tableHeadColor !important;
            color: #111111 !important;
            font-size: 14px;
            height: 50px !important;
        }
    }

    .el-table__row.hover-row,
    .el-table__row:hover,
    .el-table__row.hover-row>td,
    .el-table__row:hover>td {
        background-color: #f7f7f7;
    }
}

.app-main-container {
    margin: 18px;
    background-color: #fff;
    padding: 24px 30px;
    border-radius: 4px;
    box-sizing: border-box;
    min-height: calc(100% - 60px);

    &.xpadding {
        padding: 20px 30px;
    }

    &.tabpdding {
        padding-top: 20px;
    }

    .el-pagination.is-background .el-pager li:not(.disabled).active {
        background-color: $primaryColor;

        &:hover {
            color: #fff;
        }
    }
}

.el-tabs__item {
    padding: 0 30px;
}

.app-main-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #111111;
    display: flex;
    align-items: center;

    .goback {
        font-size: 12px;
        color: $primaryColor;
        padding: 0 15px;
        height: 28px;
        line-height: 28px;
        margin-left: 24px;
        border-radius: 14px;
        border: 1px solid;
        cursor: pointer;

        &:hover {
            background-color: $primaryColor;
            color: #fff;
        }
    }
}

.doumee-element-table,
.doumee-table {
    border-color: #DFE2E8;

    tr,
    th,
    td {
        border-color: #DFE2E8;
    }

    .el-image {
        width: 80px;
        height: 40px;
        display: block;
        margin: 0 auto;

        .el-icon-circle-close {
            color: white;
        }
    }
}

.doumee-element-table {
    overflow-x: hidden !important;

    .el-table__footer-wrapper,
    .el-table__header-wrapper {
        overflow-x: hidden !important;
    }

    .el-table--scrollable-x .el-table__body-wrapper {
        overflow: auto !important;
    }
}


.doumee-table-options-line {
    height: 14px;
    width: 1px;
    background-color: #DFE2E8;
    margin: 0 14px;
}

.el-breadcrumb__inner.is-link:hover {
    color: $primaryColor;
}

.doumee-pagination {
    padding: 20px 0;
}

.tip-style {
    color: #999999;
    font-size: 13px;
    font-weight: 400;
    margin-left: 10px;

    &.noLeft {
        margin-left: 0;
    }
}

.property-title {
    color: $primaryColor;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sub-title {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    margin-left: 10px;
    margin-bottom: 20px;
}

.el-form-item {
    margin-bottom: 20px;
}

.el-input__inner {
    border-color: $borderColor;
}

.el-form-item__label {
    line-height: 36px;
}

.el-form-item__content {
    line-height: 36px;
}

.el-input,
.el-select {
    // height: 36px;

    .el-input__inner {
        height: 36px;
        color: $textColor;
        padding: 0 16px;
        line-height: 36px;
    }

    &.el-input--small .el-input__inner {
        line-height: 32px;
        height: 32px;
    }

    .el-input__icon {
        height: 36px;
        line-height: 36px;
    }
}

.el-date-editor {
    height: 36px;

    // .el-range-separator, .el-range__close-icon {
    //   line-height: 34px;
    // }
    .el-input__inner {
        padding-left: 30px;
    }
}

.el-input--prefix .el-input__inner {
    padding-left: 30px;
}

.el-input--suffix .el-input__inner {
    padding-right: 30px;
}

.doumee-filter {
    display: flex;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
    align-items: center;

    .el-input,
    .el-select {
        width: 200px;
        margin-right: 20px;
        margin-bottom: 20px;
        height: 36px;

        .el-input__inner {
            color: $textColor;
            padding: 0 16px;
        }
    }

    .el-date-editor {
        width: 200px;
        margin-right: 20px;
        margin-bottom: 20px;

        .el-input__inner {
            padding-left: 30px;
        }
    }

    .el-button {
        margin-bottom: 20px;
    }

    .el-form-item {
        margin-bottom: 20px;
        margin-right: 20px;

        .el-input,
        .el-select,
        .el-date-editor {
            margin-right: 0;
        }

        .el-input,
        .el-select,
        .el-date-editor,
        .el-button {
            margin-bottom: 0;
        }
    }
}

.doumee_table_header,
.doumee-table-buttons {
    margin-bottom: 20px;
}

// .doumee-filter+.doumee_table_header, .doumee-filter+.doumee-table-buttons {
//   margin-top: -20px;
// }
.margin-l-10 {
    margin-left: 10px;
}

.margin-r-5 {
    margin-right: 5px;
}

.margin-r-10 {
    margin-right: 10px;
}

.margin-r-20 {
    margin-right: 20px;
}

.margin-r-30 {
    margin-right: 30px;
}

.margin-t-20 {
    margin-top: 20px;
}

.form-inline {
    padding-bottom: 10px;

    .item {
        width: 220px;
        margin-right: 10px;
    }
}

.form-line {
    background-color: #DFE2E8;
    height: 1px;
}

.item-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: #222222;
}

.doumee-form {
    max-width: 1000px;
}

.position-right {
    position: absolute;
    right: 0;
}

.table-header {
    background-color: $tableHeadColor !important;

    th {
        background-color: $tableHeadColor !important;
        color: #111111 !important;
        font-size: 14px;
    }
}

.flex-cb {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-c {
    display: flex;
    align-items: center;
}

.flex-cc {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-1 {
    flex: 1;
}

.base-bg-cover {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.base-bg-contain {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.submit-button-style {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.date-division-line {
    text-align: center;
    display: inline-block;
    color: #999;
    width: 20px;
    margin-right: 10px;
    margin-left: -10px;
    margin-bottom: 20px;
}

.single-maxheight {
    max-height: 50px;
}

.table_tj {
    overflow-x: auto !important;

    &:after {
        position: relative;
    }

    &:before {
        background: none !important;
    }

    .el-table__header-wrapper {
        overflow: visible !important;
    }

    .el-table__body-wrapper {
        overflow: visible !important;
    }

    .el-table__footer-wrapper {
        overflow: visible !important;
    }

    .el-table--scrollable-x .el-table__body-wrapper {
        overflow: visible !important;
    }
}

.warnningTip {
    height: 36px;
    display: flex;
    align-items: center;
    background: #fbedea;
    border-radius: 2px;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: $SecondColor;

    i {
        margin-right: 6px;
    }
}

.el-dialog__header {
    color: #222222;
    background-color: #f7f7f7;

    .el-dialog__title {
        font-size: 16px;
        line-height: 20px;
        font-weight: 600;
    }
}

.el-table__fixed-right {
    .el-button {
        position: relative;
    }

    .el-button+.el-button {
        margin-left: 10px;
        padding-left: 10px;

        &:before {
            content: '';
            width: 1px;
            display: inline-block;
            background-color: #DFE2E8;
            height: 14px;
            position: absolute;
            top: 50%;
            left: 0;
            margin-top: -7px;
        }
    }
}

.el-switch.is-checked .el-switch__core,
.el-checkbox__input.is-checked .el-checkbox__inner {
    border-color: $primaryColor !important;
    background-color: $primaryColor !important;
}

.el-checkbox__input.is-checked+.el-checkbox__label {
    color: $primaryColor !important;
}

.el-message-box__wrapper {
    .el-button--primary {
        background-color: $primaryColor;
        border-color: $primaryColor;

        &:hover {
            background-color: $hoverColor;
            border-color: $hoverColor;
            color: #fff;
        }
    }

    .el-button--default {
        &:hover {
            background-color: #fff;
            border-color: $hoverColor;
            color: $hoverColor;
        }
    }

    .el-button--text {
        color: $primaryColor;
        padding: 0;
    }
}

.fwxInfo {
    width: 100%;
}

.fwxInfo image,
.fwxInfo img {
    max-width: 100%;
}

.total_wrap {
    display: flex;
    background-color: #f3f2fa;
    margin-bottom: 20px;
    height: 70px;
    overflow: hidden;

    .item_list {
        display: flex;
        width: calc(100% - 200px);
        overflow-y: hidden;
        overflow-x: auto;
    }

    .item {
        padding: 16px 30px;
        text-align: center;
        font-size: 12px;
        flex-shrink: 0;

        .key {
            margin-bottom: 6px;
        }

        .value {
            .price {
                font-size: 16px;
            }
        }
    }

    .first {
        padding: 16px 20px;
        background-color: $primaryColor;
        color: #fff;
        width: 90px;
        font-size: 14px;
    }

    .jesm {
        color: #333;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100px;
        font-size: 14px;
    }
}

.uniDbt {
    font-size: 26px;
    margin-bottom: 40px;
    color: #666666;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .left {
        font-size: 34px;
        font-weight: 600;
        color: #222222;
    }

    .right {
        font-size: 26px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #999999;
    }
}

.limit-1-line {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* autoprefixer: off */
    -webkit-box-orient: vertical;
    /* autoprefixer: on */
}

.no-order {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
    width: 100%;
    text-align: center;

    img {
        width: 360px;
        height: 188px;
    }

    div {
        font-size: 26px;
        margin-top: 20px;
        color: #999999;
    }
}

.ckxqBtn {
    color: $primaryColor;
    cursor: pointer;
    text-decoration: underline;
}

.total_wrapb {
    background-color: #f5f7fc;
    margin-bottom: 20px;
    display: flex;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    padding: 11px 20px;
    line-height: 14px;
    float: right;

    .item_list {
        margin-right: 10px;

        .money {
            color: #000;
        }
    }

    .first_item {
        border-right: 1px solid #333;
        padding-right: 10px;
        margin-right: 10px;
    }
}

.ql-toolbar.ql-snow .ql-picker-label {
    display: flex;
    align-items: center;
}